← Index
NYTProf Performance Profile   
For starman worker -M FindBin --max-requests 50 --workers 2 --user=kohadev-koha --group kohadev-koha --pid /var/run/koha/kohadev/plack.pid --daemonize --access-log /var/log/koha/kohadev/plack.log --error-log /var/log/koha/kohadev/plack-error.log -E deployment --socket /var/run/koha/kohadev/plack.sock /etc/koha/sites/kohadev/plack.psgi
  Run on Fri Jan 8 14:31:06 2016
Reported on Fri Jan 8 14:31:39 2016

Filename(eval 1118)[/usr/share/perl5/CGI.pm:932]
StatementsExecuted 50 statements in 429µs
Eval Invoked At/usr/share/perl5/CGI.pm line 932
Sibling evals1, 2, 3, 4, 5, 6
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
33298µs978µsCGI::::cookieCGI::cookie
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1
# spent 978µs (98+880) within CGI::cookie which was called 3 times, avg 326µs/call: # once (36µs+376µs) by C4::Search::History::get_from_session at line 201 of C4/Search/History.pm # once (37µs+363µs) by C4::Auth::checkauth at line 775 of C4/Auth.pm # once (25µs+140µs) by C4::Auth::checkauth at line 883 of C4/Auth.pm
package CGI; sub cookie {
2540µs516µs my($self,@p) = self_or_default(@_);
# spent 16µs making 5 calls to CGI::self_or_default, avg 3µs/call
35120µs586µs my($name,$value,$path,$domain,$secure,$expires,$httponly) =
# spent 86µs making 5 calls to CGI::Util::rearrange, avg 17µs/call
4 rearrange([NAME,[VALUE,VALUES],PATH,DOMAIN,SECURE,EXPIRES,HTTPONLY],@p);
5
65181µs require CGI::Cookie;
7
8 # if no value is supplied, then we retrieve the
9 # value of the cookie, if any. For efficiency, we cache the parsed
10 # cookies in our state variables.
1152µs unless ( defined($value) ) {
12437µs41.21ms $self->{'.cookies'} = CGI::Cookie->fetch;
# spent 1.21ms making 4 calls to CGI::Cookie::fetch, avg 302µs/call
13
14 # If no name is supplied, then retrieve the names of all our cookies.
1543µs return () unless $self->{'.cookies'};
1641µs return keys %{$self->{'.cookies'}} unless $name;
17416µs4224µs return () unless $self->{'.cookies'}->{$name};
# spent 224µs making 4 calls to CGI::Cookie::as_string, avg 56µs/call
18418µs46µs return $self->{'.cookies'}->{$name}->value if defined($name) && $name ne '';
# spent 6µs making 4 calls to CGI::Cookie::value, avg 1µs/call
19 }
20
21 # If we get here, we're creating a new cookie
221700ns return undef unless defined($name) && $name ne ''; # this is an error
23
241200ns my @param;
251700ns push(@param,'-name'=>$name);
261500ns push(@param,'-value'=>$value);
271100ns push(@param,'-domain'=>$domain) if $domain;
281100ns push(@param,'-path'=>$path) if $path;
291200ns push(@param,'-expires'=>$expires) if $expires;
301100ns push(@param,'-secure'=>$secure) if $secure;
311800ns push(@param,'-httponly'=>$httponly) if $httponly;
32
3317µs197µs return CGI::Cookie->new(@param);
# spent 97µs making 1 call to CGI::Cookie::new
34}
35
36;